const storage = window.localStorage;
// 设置
const get = (key) => {
    return JSON.parse(storage.getItem(key));
};
const set = (key, value) => {
    storage.setItem(key, JSON.stringify(value));
};
const remove = (key) => {
    storage.removeItem(key);
};
const clear = () => {
    storage.clear();
};

export {get, set, remove, clear };